package cherry.data.service;


import cherry.data.util.Result;
import cherry.data.view.request.CherryRequest;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @ClassName CherryService.java
 * @author 谢宇翔
 * @version 1.0.0
 * @Description 登录接口层
 * @createTime 2022年01月23日 20:32:00
 */
public interface CherryLoginService  {

    /**
     * @ClassName CherryService.java
     * @author 谢宇翔
     * @version 1.0.0
     * @Description 登录接口
     * @createTime 2022年01月06日 23:51:00
     */
    @RequestMapping(value = "/api/v1/cherry/login", method = RequestMethod.POST)
    Result<?> logIns(@RequestBody CherryRequest request);


    /**
     * @ClassName CherryService.java
     * @author 谢宇翔
     * @version 1.0.0
     * @Description 注册接口
     * @createTime 2022年01月07日 22:29:00
     */
    @RequestMapping(value = "/api/v1/cherry/register", method = RequestMethod.POST)
    Result<?> register(@RequestBody CherryRequest request);


    //todo 上传文件接口未实现
    //    @RequestMapping(value = "/upload/uploadFile", method = RequestMethod.POST, produces = {MediaType.APPLICATION_JSON_UTF8_VALUE}, consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
//    String uploadFile(@RequestPart(value = "file") MultipartFile file);
}
